package com.lzhan.day17;



import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

public class DemoReflection {

	public static void main(String[] args) {
		List<String> list=new ArrayList<String>();
		Class cla=list.getClass();
		System.out.println(cla);
		System.out.println(cla.getName());
		Method[] methods=cla.getDeclaredMethods();
		for (Method method : methods) {
			System.out.println(method.getName());
		}
		System.out.println(cla.getSuperclass());
		
		
	}

}
